<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="text">
    <button>查询</button>

    <script src="../lib/jquery.min.js"></script>
    <script>
        // const inp = document.querySelector('input');
        // const btn = document.querySelector('button');

        // btn.addEventListener('click', () => {
        //     console.log(inp.value);
        // });

        // $('input').val('hello world');

        $('button').on('click', function () {
            // console.log( $('input').val() ); // 获取
            console.log($(this).parent());
        });

    </script>
</body>
</html>